Spread for ASP.NET 10 Product Documentation
CopyTo(NamedStyle[],Int32) Method
Example 


One-dimensional array into which the elements from ICollection are copied; the array indexing must be zero-based.
Zero-based index in the array at which to paste the styles
Copies the styles in the collection to a specified array of named styles.
Syntax
'Declaration
 
Public Overloads Sub CopyTo( _
   ByVal array() As NamedStyle, _
   ByVal index As Integer _
) 
'Usage
 
Dim instance As DefaultStyleCollection
Dim array() As NamedStyle
Dim index As Integer
 
instance.CopyTo(array, index)
public void CopyTo( 
   NamedStyle[] array,
   int index
)

Parameters

array
One-dimensional array into which the elements from ICollection are copied; the array indexing must be zero-based.
index
Zero-based index in the array at which to paste the styles
Example
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
FarPoint.Web.Spread.NamedStyle[] style = new FarPoint.Web.Spread.NamedStyle[dsc.Count];
dsc.CopyTo((Array)style,0);

Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection()
Dim style(dsc.Count()) As FarPoint.Web.Spread.NamedStyle
dsc.CopyTo(CType(style, Array), 0)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.